<!--
 * @Description: 
 * @Autor: zhangbing
 * @Date: 2021-07-28 16:04:27
 * @LastEditors: zhangbing
 * @LastEditTime: 2021-07-28 16:25:24
-->

<template>
  <div>
    <button :class="['my-btn', btnStyle]">
        <slot></slot>
    </button>
  </div>
</template>

<script>
export default {
  name: "MyBtn",
  props: {
    btnStyle: String,
  },
  data() {
    return {};
  },
  created() {},
  mounted() {},
  methods: {},
};
</script>

<style>
.my-btn {
  height: 34px;
  padding: 0 15px;
  border: none;
  outline: none;
  background-color: #000;
  color: #fff;
}

.my-btn.btn-primary {
  background-color: blue;
  color: #fff;
}

.my-btn.btn-danger {
  background-color: red;
  color: #fff;
}
.my-btn.btn-success {
  background-color: green;
  color: #fff;
}
</style>
